<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
*{padding: 0px; margin: 0px;}
html, body {font-size: 12px; color: #000000; text-align: center; line-height: 18px; margin:0px auto; background: #FFFFFF; overflow: hidden;}
</style>
<title>Iel-Editor 全屏编辑模式</title>
<script type="text/javascript" src="dialog.js"></script>
<script type="text/javascript">
var oElem = URLParams["obj"];
var CurrEditor,nTime;
var isInit=false;

window.onload=function(){
	//window.document.getElementById("sFullScreen").value = oMyEditor.getHTML();
	CurrEditor = window.document.getElementById("EditorFullScreen");
	if(typeof(CurrEditor.contentWindow.MyIEL_Editor)=="object"){
		var bresult = CurrEditor.contentWindow.MyIEL_Editor.setHTML(oMyEditor.getHTML());
		if(!bresult){
			nTime = window.setInterval("InitEditor()",2000);
		}else{
			isInit = true;
			oMyEditor.setHTML("");
			oMyEditor.toggleMode("CODE");
		}
	}else{
		nTime = window.setInterval("InitEditor()",2000);
	}
};

function InitEditor(){
	if(typeof(CurrEditor.contentWindow.MyIEL_Editor)=="object"){
		var bresult = CurrEditor.contentWindow.MyIEL_Editor.setHTML(oMyEditor.getHTML());
		if(bresult){
			isInit = true;
			oMyEditor.setHTML("");
			oMyEditor.toggleMode("CODE");
			window.clearInterval(nTime);
		}
	}
}

function Revert(){
	if(isInit){	oMyEditor.toggleMode("EDIT");oMyEditor.setHTML(CurrEditor.contentWindow.MyIEL_Editor.getHTML());}
	window.parent.document.getElementById(oElem).src="";
	window.parent.document.getElementById(oElem).style.display="none";	
}
</script>
</head>
<body>
<input type="hidden" id="sFullScreen" name="sFullScreen" value="&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;center&gt;正在传送数据请稍候…&lt;/center&gt;">
<iframe id="EditorFullScreen" src="../editor.html?xHtml=sFullScreen&FScreen=1&Panel=0" frameborder="0" scrolling=no width="100%" height="100%" style="display: block;"></iframe>
</body>
</html>
